package top.arryweb.application.domain.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 每日收益
 * </p>
 *
 * @author astupidcoder
 * @since 2021-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BookKeepCapitalDaily implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private Boolean deleteFlag;

    private Boolean enableFlag;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    private Long version;

    private BigDecimal amount;

    /**
     * 收支记录类型id
     */
    private Long capitalDailyTypeId;

    /**
     * 记录所属日期
     */
    private LocalDateTime capitalDate;

    /**
     * 商户id，若平台为单商户，可不填写商户id，默认为0
     */
    private Long merchantId;

    private String eventContent;

    private String eventType;

    private String paramContent;

    private Long userId;


}
